package cn.zlp.hrm.client;

import cn.zlp.hrm.domain.LoginUser;
import cn.zlp.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: hrm-parent
 * @author: Mr.Zhang
 * @create: 2022-01-02 21:05
 **/
@FeignClient(value = "AUTH-SERVICE",fallbackFactory = LoginUserClientFallbackFactory.class )
@RequestMapping("/loginUser")
public interface LoginUserClient {
    @PutMapping
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
